package org.tulkas.ext;

import java.util.HashMap;
import java.util.Map;

/**
 * @author <a href="mailto:tulkas.web@gmail.com">Tulkas</a>
 *
 */
public class ConfigExtension {
	private static final long serialVersionUID = -1104202592031656447L;

	private final Map<String, String> params = new HashMap<String, String>();
	private String pluginId = null;
	private String pointId = null;
	private String name = null;
	private String description = null;

	public String getPluginId() {
		return pluginId;
	}

	void setPluginId(String pluginId) {
		this.pluginId = pluginId;
	}

	public String getPointId() {
		return pointId;
	}

	void setPointId(String pointId) {
		this.pointId = pointId;
	}

	public String getName() {
		return name;
	}

	void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	void setDescription(String description) {
		this.description = description;
	}

	public String[] getParamNames() {
		return params.keySet().toArray(new String[params.size()]);
	}

	public String getParamValue(String paramName) {
		return params.get(paramName);
	}

	void setParam(String name, String value) {
		params.put(name, value);
	}

}
